%%%-------------------------------------------------------------------
%%% @author kk
%%% @copyright (C) 2024, <COMPANY>
%%% @doc
%%%
%%% @end
%%% Created : 18. 7月 2024 14:25
%%%-------------------------------------------------------------------
-module(len).
-author("kk").

%% API
-export([start/0]).

start() ->
  List = [1,3,4,5],
  Len = len(List),
  io:fwrite("~w", [Len]).

len([]) ->
  0;
len([_ | List]) ->
  1 + len(List).